Package-level declarations

Types

Link copied to clipboard
data class BMSData(val bmsIndex: Int, val voltage: Double?, val current: Double?, val remainingCapacity: Int?, val factoryCapacity: Int?, val cycles: Int?, val temperatures: List<Double>?, val cellVoltages: List<Double>?)

Companion model for BMS (Battery Management System) summary data. Provides detailed battery health information beyond what EUCData carries.

Link copied to clipboard
data class EUCData(frameType: String = "BASE", val speed: Double, val voltage: Double, val current: Double, val temperature: Double, val batteryLevel: Int, val distance: Double, val power: Double, val pwm: Double? = null, val timestamp: Long, val rawData: ByteArray, val manufacturer: String, val model: String, val serialNumber: String? = null, val firmwareVersion: String? = null, val isCharging: Boolean, val rideTime: Long, val cellVoltages: List<Double>? = null, val motorTemperature: Double? = null, val totalDistance: Double? = null, val pedalsMode: Int? = null, val alarmMode: Int? = null, val rollAngleMode: Int? = null, val usesMiles: Boolean? = null, val autoPowerOffMinutes: Int? = null, val tiltBackSpeed: Int? = null, val ledMode: Int? = null, val lightMode: Int? = null, val alertFlags: Int? = null, val wheelAlarm: Boolean? = null, val topSpeed: Double? = null, val fanStatus: Int? = null, val chargingStatus: Int? = null, val temperature2: Double? = null, val cpuLoad: Int? = null, val speedLimit: Double? = null, val alarm1Speed: Int? = null, val alarm2Speed: Int? = null, val alarm3Speed: Int? = null, val wheelMaxSpeed: Int? = null, val wheelDistance: Double? = null, val angle: Double? = null, val phaseCurrent: Double? = null, val roll: Double? = null, val torque: Double? = null, val mode: String? = null)

Represents real-time telemetry data from an Electric Unicycle.

Link copied to clipboard
data class EUCDevice(val bluetoothDevice: BluetoothDevice? = null, val name: String, val address: String, val manufacturerId: Int, val manufacturerData: ByteArray? = null, val rssi: Int, val timestamp: Long = System.currentTimeMillis())

Represents an Electric Unicycle device discovered during BLE scanning.